<?php
include "connect.php";

$ssid=$_POST['ssid'];
$roll=$_POST['roll'];
$sess=$_POST['sess'];
$sub=$_POST['sub'];
$class=$_POST['class'];

$dbquery="INSERT INTO student_subject (ss_id,roll_no,session_id,subject_id,class_id) 
VALUES ('$sid','$roll','$sess','$sub','$class')";

mysql_query($dbquery);
	
header("location:student_subject_success.php");
?>